package com.origin.netlibrary.bean;

import com.jeremyliao.liveeventbus.core.LiveEvent;

public class DownLoadProBean implements LiveEvent {

    private String netUrl;
    private int progress;
    private boolean done;
    private String savePath;

    // kb/s
    private int speed;

    private boolean isPause;

    public DownLoadProBean(){}

    public DownLoadProBean(String netUrl, int progress, boolean done, String savePath,int speed,boolean isPause) {
        this.netUrl = netUrl;
        this.progress = progress;
        this.done = done;
        this.savePath = savePath;
        this.speed = speed;
        this.isPause = isPause;
    }

    public boolean isPause() {
        return isPause;
    }

    public void setPause(boolean pause) {
        isPause = pause;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public String getNetUrl() {
        return netUrl;
    }

    public void setNetUrl(String netUrl) {
        this.netUrl = netUrl;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    @Override
    public String toString() {
        return "DownLoadProBean{" +
                "netUrl='" + netUrl + '\'' +
                ", progress=" + progress +
                "% , done=" + done +
                ", savePath='" + savePath + '\'' +
                ", speed='" + speed + '\'' +
                "kb/s"+
                '}';
    }
}
